<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">

</script>
</head>
<body>
	<p id="test1">点进这里测试 </p>
    <button>test</button>
    

    <script src="https://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
    <script>
        $(document).ready(function(){
            $("#test1").mouseleave(function (){
                alert("no");
            })

            $("button").click(function(){
                alert("yes")
            })
        });
    </script>
</body>
</html>